import type { RouteRecordRaw } from 'vue-router'

/**
 * 路由配置
 * @description 所有路由都在这里集中管理
 */
const routes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/home/index.vue')
  },
  {
    path: '/more',
    name: 'more',
    component: () => import('@/views/more/index.vue')
  },
  {
    path: '/pay',
    name: 'pay',
    component: () => import('@/views/pay/index.vue')
  },
  {
    path: '/:pathMatch(.*)',
    redirect: '/home'
  }
]

export default routes
